{include file=$header_start}
{include file=$header_end}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/jquery-ui-1.8.17.custom.css">
<!--[if IE 7 ]>  <html class="ie7">   <![endif]-->

<script type="text/javascript" src="{$siteroot}/includes/js/jquery-1.7.1.min.js"></script> 
<script type="text/javascript" src="{$siteroot}/includes/js/menu.js"></script>
<script type="text/javascript" src="{$siteroot}/includes/js/jquery-ui-1.8.17.custom.min.js"></script>

{/strip}

{literal}
<script type="text/javascript">
$(document).ready(function(){
	//$("#tabs").tabs();
});
	
</script>
{/literal}


<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            	<section class="title_box">
                    <h4>My Inbox Messages</h4>
                   <section class="clear"></section>
                </section>
              {if $msg}{$msg}{/if}
              <section class="tab_wrapp" id="tabs">
                            <section class="tab_nav" style="margin:0px!important;">
                                <ul>
                                   <!-- <li><a href="#inbox">Inbox</a></li>
                                    <li><a href="#sentitem">Sent Item</a></li>
                                    <li><a href="#message_reply">Compose</a></li>-->
                                     <li><a href="{$siteroot}/myaccount/mymessages/" class="active">Inbox</a></li>
                                    <li><a href="{$siteroot}/myaccount/mysentmessages/" >Sent Item</a></li>
                                    <li><a href="{$siteroot}/myaccount/message_reply/">Compose</a></li>
                                    <section class="clear"></section>
                                </ul>
                            </section>
                            <section class="tab_des_wrapp" id="inbox">
                           		<section class="inbox_wrapp">
                                {section name=i loop=$msgArray}
                                	<dl>
                                    	<section class="white_box">
                                        	<section class="img_box">
                                            {if $msgArray[i].image neq ''}
                                            	<img src="{$siteroot}/includes/image.php?width=58&amp;height=58&amp;image={$siteroot}/uploads/user/{$msgArray[i].image}" />
                                            {else} 
                                            	<img src="{$siteroot}/templates/default/images/upload/featredtrade_img3.jpg" width="58" height="58" title="User Name" alt="User Name" />   
                                            {/if}  
                                            
                                            </section>
                                            <section class="inbox_txt_box">
                                            	<section class="msg_title"><a href="javascript:;" style=" cursor:default;" >{$msgArray[i].sender_name}</a> {$msgArray[i].ago} </section>
                                                <article><a href="{$siteroot}/myaccount/{$msgArray[i].id|base64_encode}/{$page}/inbox/message_view/" style="color:#000;">{$msgArray[i].subject|stripslashes|strip|truncate:110:"..."}</a></article>
                                            </section>
                                            <section class="replay_box">
                                            	<section class="close"><a href="{$siteroot}/myaccount/{$msgArray[i].id|base64_encode}/{$page}/inbox/delete_message/" onclick="javascript:return confirm('Are you sure do you want to delete this message?');" title="Delete Message">X</a></section>
                                                <a href="{$siteroot}/myaccount/{$msgArray[i].id|base64_encode}/message_reply/">Reply</a>
                                            </section>
                                         <section class="clear"></section>
                                        </section>   <section class="clear"></section>
                                    </dl>
								  {sectionelse}
				                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no messages.</div>
                                  {/section}
                                    
                                    {if $pagenation}
                                        <section class="pagna" style="padding-top:0px; margin-top:5px !important;">
                                        {$pagenation}
                                        </section>
                                    {/if}
                                    <section class="clear"></section>
                                </section> </section>
                                
                               <!-- <section class="tab_des_wrapp sentitem" id="sentitem">
                                  {section name=i loop=$msgArray}
                                     <dl>
                                        <dt>
                                            <section class="date_box"><a href="javascript:;">To {$msgArray[i].user_name}</a> {$msgArray[i].ago}</section>
                                            
                                            <article><a href="{$siteroot}/myaccount/{$msgArray[i].id|base64_encode}/{$page}/sent/message_view/" style="color:#000;">{$msgArray[i].subject|stripslashes|strip|truncate:110:"..."}</a></article>
                                        </dt>
                                        <dd><a href="{$siteroot}/myaccount/{$msgArray[i].id|base64_encode}/{$page}/sent/delete_message/" onclick="javascript:return confirm('Are you sure do you want to delete this message?');" title="Delete Sent Item">X</a></dd>
                                        <section class="clear"></section>
                                    </dl>
   								  {sectionelse}
				                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no messages.</div>
                                  {/section}
                                    
                                    {if $pagenation}
                                        <section class="pagna" style="padding-top:20px;">
                                        {$pagenation}
                                        </section>
                                    {/if}

                           </section>-->
                           
                         <!--  <section id="message_reply">
                           <form name="frmReply" id="frmReply" method="post" onsubmit="return validateMsg();">
                            <section class="tab_des_wrapp" id="compose">
                            	<section class="compose_box">
                           		<ul>
                            	<!--<li>
                                	<label>Select :</label>
                                    <select><option>Teacher</option></select>
                                 </li>
                                 <li>
                                	<label>From :</label>
                                   <input type="text" name="fromname" id="fromname" value="{$userDetArr.first_name} {$userDetArr.last_name}" readonly="readonly">
                                 </li>
                                 <li>
                                	<label>To :</label>
                                   <input type="text" name="toname" id="toname" value="Administrator" readonly="readonly"><!--{$adminDetArr.first_name} {$adminDetArr.last_name}
                                 </li>
                                 <li>
                                	<label>Subject :</label>
                                    <input type="text" name="subject" id="subject" {if $getmessagedetail.subject neq ''} value="Reply: {$getmessagedetail.subject}" {/if}>							     <section class="clear"></section>
                                     <div style="margin-left:230px;"  class="error" id="subdiv"></div>
                                 </li>
                                 <li>
                                	<label>Message :</label>
                                    <textarea name="message" id="message" style="margin-bottom:5px;overflow: auto;resize:none;"></textarea> 
                                     <section class="clear"></section>
                            
                                    <div  style="margin-left:230px; margin-bottom:10px;" class="error" id="msgdiv"></div>
                                    <section class="clear"></section>
                                    
                                 </li>
                            </ul>
                            </section>
                            <section class="bt_save_wrapp">
                            <input type="submit" name="submit" value="Send" class="bt_save">
                            <input type="button" value="Cancel" onclick="window.location='{$siteroot}/myaccount/mymessages';" class="bt_save" >
                            </section>
                            
                           </section>
                            </form>
                            <section class="clear"></section>
                           </section>-->
                           
                           </section>
                           </section>
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>


{include file=$footer}